import React, { Component } from 'react'
import HOLlogin from '../../utils/HOLlogin'
export class My extends Component {
 
    constructor(props) {
      super(props)
    
      this.state = {
       list1:[]
      }
    }
    componentDidMount() { 
    this.setState({
      list1:JSON.parse(localStorage.getItem("user"))
    })
     
      
     }
    render() {
      const {list1}=this.state
    return (
      <div>
        姓名: {list1.value1}
        <button onClick={
          ()=>{
            this.props.history.push("/Add")

          }
        }>设置</button>
    
      </div>
    )
  }
}

export default    HOLlogin  (My)
